package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TS_RoleInfo", catalog="Id")
public class TsRoleInfo extends BaseEntity<TsRoleInfo> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Guid", nameJava="guid", typeDataBase="varchar")
	private String guid;
	@YsField(nameDataBase="RoleName", nameJava="roleName", typeDataBase="varchar")
	private String roleName;
	@YsField(nameDataBase="RoleDataLimit", nameJava="roleDataLimit", typeDataBase="varchar")
	private String roleDataLimit;
	@YsField(nameDataBase="RoleOrder", nameJava="roleOrder", typeDataBase="int")
	private Integer roleOrder;
	@YsField(nameDataBase="Deleted", nameJava="deleted", typeDataBase="bit")
	private Integer deleted;
	@YsField(nameDataBase="CreateUser", nameJava="createUser", typeDataBase="varchar")
	private String createUser;
	@YsField(nameDataBase="UpdateUser", nameJava="updateUser", typeDataBase="varchar")
	private String updateUser;
	@YsField(nameDataBase="PageTemplate", nameJava="pageTemplate", typeDataBase="varchar")
	private String pageTemplate;
	@YsField(nameDataBase="RemindDaysForContract", nameJava="remindDaysForContract", typeDataBase="int")
	private Integer remindDaysForContract;
	@YsField(nameDataBase="VGwZz", nameJava="vGwZz", typeDataBase="varchar")
	private String vGwZz;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TsRoleInfo setId(Long id) {
		this.id = id;
		return this;
	}
	public String getGuid() {
		return guid;
	}
	public TsRoleInfo setGuid(String guid) {
		this.guid = guid;
		return this;
	}
	public String getRoleName() {
		return roleName;
	}
	public TsRoleInfo setRoleName(String roleName) {
		this.roleName = roleName;
		return this;
	}
	public String getRoleDataLimit() {
		return roleDataLimit;
	}
	public TsRoleInfo setRoleDataLimit(String roleDataLimit) {
		this.roleDataLimit = roleDataLimit;
		return this;
	}
	public Integer getRoleOrder() {
		return roleOrder;
	}
	public TsRoleInfo setRoleOrder(Integer roleOrder) {
		this.roleOrder = roleOrder;
		return this;
	}
	public Integer getDeleted() {
		return deleted;
	}
	public TsRoleInfo setDeleted(Integer deleted) {
		this.deleted = deleted;
		return this;
	}
	public String getCreateUser() {
		return createUser;
	}
	public TsRoleInfo setCreateUser(String createUser) {
		this.createUser = createUser;
		return this;
	}
	public String getUpdateUser() {
		return updateUser;
	}
	public TsRoleInfo setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
		return this;
	}
	public String getPageTemplate() {
		return pageTemplate;
	}
	public TsRoleInfo setPageTemplate(String pageTemplate) {
		this.pageTemplate = pageTemplate;
		return this;
	}
	public Integer getRemindDaysForContract() {
		return remindDaysForContract;
	}
	public TsRoleInfo setRemindDaysForContract(Integer remindDaysForContract) {
		this.remindDaysForContract = remindDaysForContract;
		return this;
	}
	public String getVGwZz() {
		return vGwZz;
	}
	public TsRoleInfo setVGwZz(String vGwZz) {
		this.vGwZz = vGwZz;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TsRoleInfo setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TsRoleInfo setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TsRoleInfo setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TsRoleInfo tsRoleInfo(
		String guid,
		String roleName,
		String roleDataLimit,
		Integer roleOrder,
		Integer deleted,
		String createUser,
		String updateUser,
		String pageTemplate,
		Integer remindDaysForContract,
		String vGwZz,
		Integer status
			) {
		TsRoleInfo entity = new TsRoleInfo();
		entity.setGuid(guid);
		entity.setRoleName(roleName);
		entity.setRoleDataLimit(roleDataLimit);
		entity.setRoleOrder(roleOrder);
		entity.setDeleted(deleted);
		entity.setCreateUser(createUser);
		entity.setUpdateUser(updateUser);
		entity.setPageTemplate(pageTemplate);
		entity.setRemindDaysForContract(remindDaysForContract);
		entity.setVGwZz(vGwZz);
		entity.setStatus(status);
		return entity;
	}
}